]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Hide the overview and close calendar for all Notifications
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 10 Sep 2026 17:45:09 +0000 (19:45 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 18:18:08 +0000 (20:18 +0200)
We have this behavior when activating all the notifications but not for
the ones using portal API, so let's just be consistent and do it for all

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4400>
(cherry picked from commit dbdf1f051d61341b69be4c086bd2c0c0332b4d90)

js/ui/notificationDaemon.js

index 797100e5d305994c6f89c7151646537db1189533..e94a9e81de1be74a8ef3aa2ebcec7882e2d236f3 100644 (file)
@@ -465,6 +465,9 @@ class GtkNotificationDaemonNotification extends MessageTray.Notification {
             this.source.activateAction(actionId.slice('app.'.length), target);
         else
             this.source.emitActionInvoked(this.id, actionId, target);
+
+        Main.overview.hide();
+        Main.panel.closeCalendar();
     }
 
     _onButtonClicked(button) {
@@ -517,9 +520,6 @@ class GtkNotificationDaemonAppSource extends MessageTray.Source {
         this._app.activate_action(actionId, params, 0, -1, null).catch(error => {
             logError(error, `Failed to activate action for ${this._appId}`);
         });
-
-        Main.overview.hide();
-        Main.panel.closeCalendar();
     }
 
     emitActionInvoked(notificationId, actionId, target) {